module.exports=opts=>async (ctx,next)=>{
    let start=Date.now();
    await next();
    ctx.set('X-ResponseTime',(Date.now()-start)+' ms');
};